package com.qf.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 千锋健哥
 */
@RestController
@RequestMapping("/home")
public class HomeController {

    /**
     * 登录成功后跳转到这个, 模拟首页
     * @return
     */
    @RequestMapping("/info")
    public String info() {
        return "success";
    }

    /**
     * 登录失败访问这里, 模拟跳转到失败页面
     * @return
     */
    @RequestMapping("/fail")
    public String fail() {
        return "error";
    }
}
